<template>
  <div class="nav-bar">
      <div class="navBar-left">
          <slot name="left"></slot>
      </div>
      <div class="navBar-middle">
          <slot><span class="defaultTitle">Blizzard</span></slot>
      </div>
      <div class="navBar-right">
          <slot name="right"></slot>
      </div>
  </div>
</template>

<script>
export default {

}
</script>

<style lang="scss" scoped>
.nav-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 45px;
    z-index: 10;
    background-color: #0B0D12;
    color: #fff;
    box-sizing: border-box;
    box-shadow: 0 2px 0 rgba(100, 100, 100, .1);
    .navBar-left {
        width: 60px;
        overflow: hidden;
        height: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    .navBar-middle {
        height: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        flex: 1;
        font-size: 16px;
        font-family: 'ns';
        .defaultTitle {
            color: #00AEFF;  
            font-family: 'TheRivened';
            font-size: 20px;   
        }
    }
    .navBar-right {
        width: 60px;
        overflow: hidden;
        height: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
    }
}
</style>